-- GENERATED SPELL FOR [Drakuru Prophet] --


function spell0_29697(pUnit, Event) --@Plague Cloud,Self--
pUnit:FullCastSpellOnTarget(50366,pUnit)
pUnit:RegisterEvent('Sorts_29697', 0, 1)
end

function Sorts_29697(pUnit, Event)
local choix_sorts_29697 = math.random(0, 0)
if choix_sorts_29697 == 0 then
pUnit:RegisterEvent('spell0_29697', 1, 1)
end
end

function mob29697_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29697', math.random(1500, 3000), 1)
end

function mob29697_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29697_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29697_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29697, 1, 'mob29697_Action')
RegisterUnitEvent(29697, 2, 'mob29697_Leave')
RegisterUnitEvent(29697, 3, 'mob29697_Kill')
RegisterUnitEvent(29697, 4, 'mob29697_Die')
